<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<style type="text/css">
		/*
		 *   cover 会使“最大”边，进行缩放，另一边同比缩放，铺满容器，超出部分会溢出。
			 contain 会使“最小”边，进行缩放，另一边同比缩放，不一定铺满容器，会完整显示图片。
		 * */
		div{
			height: 200px;
			width: 400px;
			border: 5px dashed red;
			background-color: yellow;
			margin: 100 auto;
			padding: 50px;
			background-image: url(../images/border.png);
		/*	background-size: 100% auto;
            background-size: cover;
            background-size: contain;*/
           /*background-size会以background-clip无关*/
            background-size: cover;
            background-repeat: no-repeat;
            background-clip: content-box;
			}
	</style>
	<body>
		<div></div>
	</body>
</html>
